import React, { Component } from 'react'
import context from './context'

export default class C extends Component {
		static contextType = context
		render() {
			console.log(this)
			return (
				<div style={{backgroundColor:'skyblue',padding:'10px'}}>
					<h2>我是C组件，我收到了一台车:{this.context.car}</h2>
				</div>
			)
		}
	}